<?php
class PostsController extends AppController {
	
	public $helpers = array('Html', 'Form');
	
	public $name = 'Posts';
	
	// Actions
	public function index() {
		$this->set('posts', $this->Post->find('all'));
	}
	
	public function view($id = null) {
		$this->Post->id = $id;
		
		$this->set('post', $this->Post->read());
	}
	
}
